package com.vion.constant;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author vion
 **/
public class Constants {

    public static final String KAFKA_VEHICLE = "vehicleData";
    public static final String KAFKA_ILLEGAL = "illegalData";
    public static final String KAFKA_TFLOW = "tflowData";
    public static final String KAFKA_PERSON = "pedestrianData";
    public static final String KAFKA_BEHAVIOR = "behaviorData";
    public static final String KAFKA_XCYCLE = "xcycleData";



    /* 手机请求状态码  start */
    public static final int APP_CODE_SUCCESS = 200;

    public static final int APP_CODE_ERROR = 500;

    public static final int APP_CODE_RESOURCE_EMPTY = 700; /**资源为空*/
    /* 手机请求状态码  end */
    public static final int WEB_CODE_REDIRCET = 300;

    public static final String PARAMETER_NULL = "请求参数缺失";

    public static final String PARAMETER_ERROR = "请求参数错误";

    public static final String SYSTEM_SESSION_USER = "sessionUser";

    public static final String PARAM_DIGEST = "signature";
    public static final String PARAM_USERID = "userId";
    public static final String URI_ENCODING = "utf-8";
    public static final String MD5_SALT = "fPVqwkcTueFf6kPi";

    public static final String SESSION_ID="session_id";
    public static final Integer CAMERALOCAL_INSIDE = 0;

    public static final Integer STORE_STATUS_OPEN = 1;

    public static String AUTH_SERV_USER_UNID = null;

    public static String AUTH_SERV_ATOKEN = null;

    public static String AUTH_SERV_RTOKEN = null;
    public static final Map<String,String> AUTH_DEVICEUNID_MAP = new ConcurrentHashMap();
    public static final Set AUTH_SERV_NEED_RELOGIN_CODE = new HashSet();
    public static final Set AUTH_SERV_NEED_GETATOKEN_CODE = new HashSet();

    //public static final List<Integer> AGE_STAGE = new ArrayList<Integer>();

    static {
        AUTH_SERV_NEED_RELOGIN_CODE.add("401");
        AUTH_SERV_NEED_RELOGIN_CODE.add("1004010002");
        AUTH_SERV_NEED_RELOGIN_CODE.add("100400100");
        AUTH_SERV_NEED_GETATOKEN_CODE.add("1004010001");
        //AUTH_DEVICEUNID_MAP.put("be44c82b-85b6-4751-bb54-e6364475d2c9", "7bd5086a780a11e7a1110242c0a80003");


		/*AGE_STAGE.add(18);
		AGE_STAGE.add(25);
		AGE_STAGE.add(35);
		AGE_STAGE.add(45);
		AGE_STAGE.add(60);*/
    }
}